package org.htmlparser.filters;

import org.htmlparser.Node;
import org.htmlparser.NodeFilter;

public class NodeClassFilter
  implements NodeFilter
{
  static Class class$org$htmlparser$tags$Html;
  protected Class mClass;

  public NodeClassFilter(Class paramClass)
  {
    this.mClass = paramClass;
  }

  static Class class$(String paramString)
  {
    Class localClass;
    try
    {
      localClass = Class.forName(paramString);
      return localClass;
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError().initCause(localClassNotFoundException);
    }
  }

  public boolean accept(Node paramNode)
  {
    int i;
    if ((this.mClass != null) && (this.mClass.isAssignableFrom(paramNode.getClass())))
      i = 1;
    while (true)
    {
      return i;
      i = 0;
    }
  }

  public Class getMatchClass()
  {
    return this.mClass;
  }

  public void setMatchClass(Class paramClass)
  {
    this.mClass = paramClass;
  }
}